package com.alibaba.sentinelview;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author YL
 * @date 22:19 2021/10/2
 */
@RestController
@RequestMapping("/flow")
public class FlowController {

    @Autowired
    private FlowService flowService;

    @GetMapping("/test")
    public String test(){
        System.err.println("test");
        return "mtcarpenter:test";
    }

    @GetMapping("/test-a")
    public String testa(){
        System.err.println("aaa");
        return "a";
    }

    @GetMapping("/test-b")
    public String testb(){
        System.err.println("bbb");
        flowService.common();
        return "b";
    }

    @GetMapping("/test-c")
    public String testc(){
        System.err.println("ccc");
        flowService.common();
        return "c";
    }

}
